<template>
  <div class="tabbar">
    <router-link to="/home" tag="div" class="item">首页</router-link>
    <router-link to="/category" tag="div" class="item">分类</router-link>
    <router-link to="/cart" tag="div" class="item">购物车</router-link>
    <router-link to="/profile" tag="div" class="item">我的</router-link>
  </div>
</template>

<style scoped>
.tabbar {
  position: fixed;
  display: flex;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 49px;
  background-color: #f6f6f6;
  box-shadow: 0 -1px 1px rgba(100, 100, 100, 0.1);
}

.item {
  flex: 1;
  line-height: 49px;
  text-align: center;
}
.router-link-active {
  color: orangered;
}
</style>
